package com.uuj.dome.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * ClassName:controller
 * PACKAGE_NAME:com.uuj.dome.controller
 */
@RestController
public class IndexController {

    private static final Logger LOGGER = LoggerFactory.getLogger(IndexController.class);


    @RequestMapping("/index")
    public String index() {

        LOGGER.debug("记录debug日志");

        LOGGER.info("访问index()方法");

        LOGGER.error("记录error错误日志");
        return "index";
    }


}
